export function ApiMap(key) {
  const map = new Map();
  map.set('WECHAT_GETOPENID', {
    model: '',
    method: '',
    checktoken: false
  });
  map.set('WECHAT_GETACCESSTOKEN', {
    model: '',
    method: '',
    checktoken: false
  });
  map.set('USER_USER_LISTALL', {
    model: 'user',
    method: 'listall',
    checktoken: true,
    authority: 'view_qx'
  });
  map.set('USER_USER_LISTPAGE', {
    model: 'user',
    method: 'listpage',
    checktoken: true
  });
  map.set('USER_USER_GET', {
    model: 'user',
    method: 'get',
    checktoken: true
  });
  map.set('USER_USER_ADD', {
    model: 'user',
    method: 'add',
    authority: 'add_qx',
    checktoken: false
  });
  map.set('USER_USER_DEL', {
    model: 'user',
    method: 'del',
    authority: 'del_qx',
    checktoken: true
  });
  map.set('USER_USER_EDIT', {
    model: 'user',
    method: 'edit',
    authority: 'edit_qx',
    checktoken: true
  });
  map.set('USER_USER_LOGIN', {
    model: 'user',
    method: 'login',
    checktoken: false
  });
  map.set('USER_USER_CURRENT', {
    model: 'user',
    method: 'current',
    checktoken: true
  });
  map.set('USER_USER_RESET', {
    model: 'user',
    method: 'reset',
    checktoken: true
  });
  map.set('USER_USER_IMGUPLOAD', {
    model: 'user',
    method: 'imgupload',
    checktoken: true
  });
  map.set('USER_USER_DELIMG', {
    model: 'user',
    method: 'delimg',
    checktoken: true
  });
  map.set('USER_USER_DOWNLOAD', {
    model: 'user',
    method: 'download',
    checktoken: true
  });
  map.set('USER_USER_EDITSTATE', {
    model: 'user',
    method: 'editstate',
    checktoken: true
  });

  map.set('STUDENT_INFO_STUDENT_INFO_LISTALL', {
    model: 'student_info',
    method: 'listall',
    checktoken: true
  });

  map.set('STUDENT_INFO_STUDENT_INFO_ADD', {
    model: 'student_info',
    method: 'add',
    checktoken: true
  });
  map.set('STUDENT_INFO_STUDENT_INFO_EDIT', {
    model: 'student_info',
    method: 'edit',
    checktoken: true
  });
  map.set('STUDENT_INFO_STUDENT_INFO_DEL', {
    model: 'student_info',
    method: 'del',
    checktoken: true
  });
  map.set('STUDENT_INFO_STUDENT_INFO_UPDATESTU', {
    model: 'student_info',
    method: 'updatestu',
    checktoken: true
  });
  map.set('STUDENT_INFO_STUDENT_INFO_GET', {
    model: 'student_info',
    method: 'get',
    checktoken: true
  });
  map.set('STUDENT_INFO_STUDENT_INFO_UPLOADIMG', {
    model: 'student_info',
    method: 'uploadImg',
    checktoken: true
  });
  map.set('STUDENT_INFO_STUDENT_INFO_DOWNLOADIMG', {
    model: 'student_info',
    method: 'downloadimg',
    checktoken: true
  });
  map.set('STUDENT_INFO_STUDENT_INFO_LISTPAGE', {
    model: 'student_info',
    method: 'listpage',
    checktoken: true
  });

  map.set('GROUP_GROUP_CLASSIFY_ADD', {
    model: 'group_classify',
    method: 'add',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_EDIT', {
    model: 'group_classify',
    method: 'edit',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_LISTALL', {
    model: 'group_classify',
    method: 'listall',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_GET', {
    model: 'group_classify',
    method: 'get',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_DEL', {
    model: 'group_classify',
    method: 'del',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_SELECTDATA', {
    model: 'group_classify',
    method: 'selectdata',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_LISTPAGE', {
    model: 'group_classify',
    method: 'selectdata',
    checktoken: true
  });

  map.set('GROUP_GROUP_CLASSIFY_ADDINFO', {
    model: 'group_classify',
    method: 'addInfo',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_DELINFO', {
    model: 'group_classify',
    method: 'delInfo',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_GETINFO', {
    model: 'group_classify',
    method: 'getInfo',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_LISTALLINFO', {
    model: 'group_classify',
    method: 'listallInfo',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_EDITINFO', {
    model: 'group_classify',
    method: 'editInfo',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_IMGUPLOAD', {
    model: 'introduction_files',
    method: 'imgUpload',
    checktoken: true
  });
  map.set('GROUP_GROUP_CLASSIFY_DELIMG', {
    model: 'introduction_files',
    method: 'delimg',
    checktoken: true
  });

  map.set('TEACHER_INFO_TEACHER_INFO_GET', {
    model: 'teacher_info',
    method: 'get',
    checktoken: true
  });
  map.set('TEACHER_INFO_TEACHER_INFO_ADD', {
    model: 'teacher_info',
    method: 'add',
    checktoken: true
  });
  map.set('TEACHER_INFO_TEACHER_INFO_EDIT', {
    model: 'teacher_info',
    method: 'edit',
    checktoken: true
  });
  map.set('TEACHER_INFO_TEACHER_INFO_LISTALL', {
    model: 'teacher_info',
    method: 'listall',
    checktoken: true
  });
  map.set('TEACHER_INFO_TEACHER_INFO_DEL', {
    model: 'teacher_info',
    method: 'del',
    checktoken: true
  });
  map.set('TEACHER_INFO_TEACHER_INFO_LISTPAGE', {
    model: 'teacher_info',
    method: 'listpage',
    checktoken: true
  });
  map.set('MENU_MENU_ADD', {
    model: 'menu',
    method: 'add',
    checktoken: true
  });
  map.set('MENU_MENU_EDIT', {
    model: 'menu',
    method: 'edit',
    checktoken: true
  });
  map.set('MENU_MENU_LISTALL', {
    model: 'menu',
    method: 'listall',
    checktoken: true
  });
  map.set('MENU_MENU_GET', {
    model: 'menu',
    method: 'get',
    checktoken: true
  });
  map.set('MENU_MENU_DELMENU', {
    model: 'menu',
    method: 'delmenu',
    checktoken: true
  });
  map.set('SIGN_SIGN_USERSIGN', {
    model: 'sign',
    method: 'usersign',
    checktoken: false
  });
  map.set('SIGN_SIGN_GETSIGN', {
    model: 'sign',
    method: 'get',
    checktoken: false
  });
  map.set('SIGN_SIGN_LISTALL', {
    model: 'sign',
    method: 'listall',
    checktoken: false
  });
  map.set('SIGN_SIGN_COUNT', {
    model: 'sign',
    method: 'count',
    checktoken: false
  });
  map.set('SIGN_SIGN_LISTPAGE', {
    model: 'sign',
    method: 'listall',
    checktoken: false
  });

  map.set('DICT_DICT_ADD', {
    model: 'dict',
    method: 'add',
    checktoken: true
  });
  map.set('DICT_DICT_DEL', {
    model: 'dict',
    method: 'del',
    checktoken: true
  });
  map.set('DICT_DICT_EDIT', {
    model: 'dict',
    method: 'edit',
    checktoken: true
  });
  map.set('DICT_DICT_GET', {
    model: 'dict',
    method: 'get',
    checktoken: true
  });
  map.set('DICT_DICT_LISTALL', {
    model: 'dict',
    method: 'listall',
    checktoken: true
  });
  map.set('DICT_DICT_LISTPAGE', {
    model: 'dict',
    method: 'listpage',
    checktoken: true
  });
  map.set('DICT_DICT_GETTYPE', {
    model: 'dict',
    method: 'gettype',
    checktoken: true
  });

  map.set('ROLE_ROLE_LISTALL', {
    model: 'role',
    method: 'listall',
    checktoken: true
  });
  map.set('ROLE_ROLE_GETPERMISSION', {
    model: 'role',
    method: 'getpermission',
    checktoken: true
  });
  map.set('ROLE_ROLE_ADD', {
    model: 'role',
    method: 'add',
    checktoken: true
  });
  map.set('ROLE_ROLE_LISTPAGE', {
    model: 'role',
    method: 'listpage',
    checktoken: true
  });
  map.set('ROLE_ROLE_EDIT', {
    model: 'role',
    method: 'edit',
    checktoken: true
  });
  map.set('ROLE_ROLE_DEL', {
    model: 'role',
    method: 'del',
    checktoken: true
  });
  map.set('ROLE_ROLE_GET', {
    model: 'role',
    method: 'get',
    checktoken: true
  });

  map.set('PROJECT_INFO_PROJECT_INFO_UPLOADFILES', {
    model: 'project_info',
    method: 'uploadfiles',
    checktoken: true
  });
  map.set('PROJECT_INFO_PROJECT_INFO_DOWNLOAD', {
    model: 'project_info',
    method: 'download',
    checktoken: true
  });
  map.set('PROJECT_INFO_PROJECT_INFO_ADD', {
    model: 'project_info',
    method: 'add',
    checktoken: true
  });
  map.set('PROJECT_INFO_PROJECT_INFO_EDIT', {
    model: 'project_info',
    method: 'edit',
    checktoken: true
  });
  map.set('PROJECT_INFO_PROJECT_INFO_DEL', {
    model: 'project_info',
    method: 'del',
    checktoken: true
  });
  map.set('PROJECT_INFO_PROJECT_INFO_GET', {
    model: 'project_info',
    method: 'get',
    checktoken: true
  });
  map.set('PROJECT_INFO_PROJECT_INFO_GETUPLOADFILEBYID', {
    model: 'project_info',
    method: 'getUploadFileById',
    checktoken: true
  });
  map.set('PROJECT_INFO_PROJECT_INFO_LISTALL', {
    model: 'project_info',
    method: 'listall',
    checktoken: true
  });
  map.set('PROJECT_INFO_PROJECT_INFO_LISTPAGE', {
    model: 'project_info',
    method: 'listpage',
    checktoken: true
  });
  map.set('PROJECT_INFO_PROJECT_INFO_DELETEFILE', {
    model: 'project_info',
    method: 'deleteFile',
    checktoken: true
  });

  map.set('RICHTEXT_RICHTEXT_ADD', {
    model: 'richtext',
    method: 'add',
    checktoken: true
  });
  map.set('RICHTEXT_RICHTEXT_EDIT', {
    model: 'richtext',
    method: 'edit',
    checktoken: true
  });
  map.set('RICHTEXT_RICHTEXT_DEL', {
    model: 'richtext',
    method: 'del',
    checktoken: true
  });
  map.set('RICHTEXT_RICHTEXT_GET', {
    model: 'richtext',
    method: 'get',
    checktoken: true
  });
  map.set('RICHTEXT_RICHTEXT_LISTALL', {
    model: 'richtext',
    method: 'listall',
    checktoken: true
  });
  map.set('RICHTEXT_RICHTEXT_LISTPAGE', {
    model: 'richtext',
    method: 'listpage',
    checktoken: true
  });
  map.set('RECRUIT_ENCLOSURE_RECRUIT_ENCLOSURE_UPLOADFILES', {
    model: 'recruit_enclosure',
    method: 'uploadfiles',
    checktoken: true
  });
  map.set('RECRUIT_ENCLOSURE_RECRUIT_ENCLOSURE_DEL', {
    model: 'recruit_enclosure',
    method: 'del',
    checktoken: true
  });
  map.set('RECRUIT_ENCLOSURE_RECRUIT_ENCLOSURE_GET', {
    model: 'recruit_enclosure',
    method: 'get',
    checktoken: true
  });
  // map.set('RICHTEXT_RICHTEXT_LISTALL', {
  //   model: 'recruit_enclosure',
  //   method: 'listall',
  //   checktoken: true
  // });
  map.set('RECRUIT_ENCLOSURE_RECRUIT_ENCLOSURE_LISTPAGE', {
    model: 'recruit_enclosure',
    method: 'listpage',
    checktoken: true
  });
  map.set('RECRUIT_ENCLOSURE_RECRUIT_ENCLOSURE_DOWNLOAD', {
    model: 'recruit_enclosure',
    method: 'download',
    checktoken: true
  });

  map.set('RECRUIT_NEW_INFO_RECRUIT_NEW_INFO_LISTALL', {
    model: 'recruit_new_info',
    method: 'listall',
    checktoken: true
  });
  map.set('RECRUIT_NEW_INFO_RECRUIT_NEW_INFO_LISTPAGE', {
    model: 'recruit_new_info',
    method: 'listpage',
    checktoken: true
  });
  map.set('RECRUIT_NEW_INFO_RECRUIT_NEW_INFO_GET', {
    model: 'recruit_new_info',
    method: 'get',
    checktoken: true
  });
  map.set('RECRUIT_NEW_INFO_RECRUIT_NEW_INFO_ADD', {
    model: 'recruit_new_info',
    method: 'add',
    checktoken: true
  });
  map.set('RECRUIT_NEW_INFO_RECRUIT_NEW_INFO_DEL', {
    model: 'recruit_new_info',
    method: 'del',
    checktoken: true
  });
  map.set('RECRUIT_NEW_INFO_RECRUIT_NEW_INFO_EDIT', {
    model: 'recruit_new_info',
    method: 'edit',
    checktoken: true
  });

  // lab_introduction
  map.set('LAB_INTRODUCTION_LAB_INTRODUCTION_LISTALL', {
    model: 'lab_introduction',
    method: 'listall',
    checktoken: true
  });
  map.set('LAB_INTRODUCTION_LAB_INTRODUCTION_LISTPAGE', {
    model: 'lab_introduction',
    method: 'listpage',
    checktoken: true
  });
  map.set('LAB_INTRODUCTION_LAB_INTRODUCTION_GET', {
    model: 'lab_introduction',
    method: 'get',
    checktoken: true
  });
  map.set('LAB_INTRODUCTION_LAB_INTRODUCTION_ADD', {
    model: 'lab_introduction',
    method: 'add',
    checktoken: true
  });
  map.set('LAB_INTRODUCTION_LAB_INTRODUCTION_DEL', {
    model: 'lab_introduction',
    method: 'del',
    checktoken: true
  });
  map.set('LAB_INTRODUCTION_LAB_INTRODUCTION_EDIT', {
    model: 'lab_introduction',
    method: 'edit',
    checktoken: true
  });
  map.set('LAB_INTRODUCTION_LAB_INTRODUCTION_UPLOADFILES', {
    model: 'lab_introduction',
    method: 'uploadfiles',
    checktoken: true
  });
  map.set('LAB_INTRODUCTION_LAB_INTRODUCTION_DELETEFILE', {
    model: 'lab_introduction',
    method: 'deleteFile',
    checktoken: true
  });

  map.set('NOTICE_NOTICE_ADDNOTICE', {
    model: 'notice',
    method: 'addnotice',
    checktoken: true
  });
  map.set('NOTICE_NOTICE_DEL', {
    model: 'notice',
    method: 'del',
    checktoken: true
  });
  map.set('NOTICE_NOTICE_SELECT', {
    model: 'notice',
    method: 'select',
    checktoken: true
  });
  map.set('NOTICE_NOTICE_SAVE', {
    model: 'notice',
    method: 'save',
    checktoken: true
  });
  map.set('NOTICE_NOTICE_LISTPAGE', {
    model: 'notice',
    method: 'listpage',
    checktoken: true
  });
  map.set('NOTICE_NOTICE_GET', {
    model: 'notice',
    method: 'get',
    checktoken: true
  });
  map.set('NOTICE_NOTICE_RELEASE', {
    model: 'notice',
    method: 'release',
    checktoken: true
  });
  map.set('NOTICE_NOTICE_EDITNOTICE', {
    model: 'notice',
    method: 'editnotice',
    checktoken: true
  });

  map.set('ANNOUNCEMRNT_ANNOUNCEMENT_ADDANNOUNCE', {
    model: 'announcement',
    method: 'addannounce',
    checktoken: true
  });
  map.set('ANNOUNCEMRNT_ANNOUNCEMENT_DEL', {
    model: 'notannouncementice',
    method: 'del',
    checktoken: true
  });
  map.set('ANNOUNCEMRNT_ANNOUNCEMENT_SAVE', {
    model: 'announcement',
    method: 'save',
    checktoken: true
  });
  map.set('ANNOUNCEMRNT_ANNOUNCEMENT_LISTPAGE', {
    model: 'announcement',
    method: 'listpage',
    checktoken: true
  });
  map.set('ANNOUNCEMRNT_ANNOUNCEMENT_GET', {
    model: 'announcement',
    method: 'get',
    checktoken: true
  });
  map.set('ANNOUNCEMRNT_ANNOUNCEMENT_RELEASE', {
    model: 'announcement',
    method: 'release',
    checktoken: true
  });

  map.set('USER_NOTICE_USER_NOTICE_ADD', {
    model: 'user_notice',
    method: 'add',
    checktoken: true
  });
  // map.set('USER_NOTICE_USER_NOTICE_CHECKTIME', {
  //   model: 'user_notice',
  //   method: 'checkTime'
  //   // checktoken: true
  // });
  map.set('USER_NOTICE_USER_NOTICE_READOFF', {
    model: 'user_notice',
    method: 'readOff',
    checktoken: true
  });
  map.set('USER_NOTICE_USER_NOTICE_READCOUNT', {
    model: 'user_notice',
    method: 'readcount',
    checktoken: true
  });
  map.set('USER_NOTICE_USER_NOTICE_READDETAIL', {
    model: 'user_notice',
    method: 'readdetail',
    checktoken: true
  });

  // 前台展示接口
  // 实验室介绍接口 getList
  map.set('LAB_INTRODUCTION_LAB_INTRODUCTION_GETLIST', {
    model: 'lab_introduction',
    method: 'post',
    checktoken: false
  });
  // 招新信息接口 getlist
  map.set('RECRUIT_NEW_INFO_RECRUIT_NEW_INFO_GETLIST', {
    model: 'recruit_new_info',
    method: 'post',
    checktoken: false
  });
  // 项目接口 getlist
  map.set('PROJECT_INFO_PROJECT_INFO_GETLIST', {
    model: 'project_info',
    method: 'post',
    checktoken: false
  });
  // 项目接口 getone
  map.set('PROJECT_INFO_PROJECT_INFO_GETONE', {
    model: 'project_info',
    method: 'getone',
    checktoken: false
  });
  const params = map.get(key);
  return params;
}
